<div class="championships view">
<h2><?php echo __('Championship'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($championship['Championship']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($championship['Championship']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Year'); ?></dt>
		<dd>
			<?php echo h($championship['Championship']['year']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Place'); ?></dt>
		<dd>
			<?php echo h($championship['Championship']['place']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Groups'); ?></dt>
		<dd>
			<?php echo h($championship['Championship']['groups']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('TeamsPerGroup'); ?></dt>
		<dd>
			<?php echo h($championship['Championship']['teamsPerGroup']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Stages'); ?></dt>
		<dd>
			<?php echo h($championship['Championship']['stages']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('HasThirdPlace'); ?></dt>
		<dd>
			<?php echo h($championship['Championship']['hasThirdPlace']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Championship'), array('action' => 'edit', $championship['Championship']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Championship'), array('action' => 'delete', $championship['Championship']['id']), null, __('Are you sure you want to delete # %s?', $championship['Championship']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Championships'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Championship'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Matches'), array('controller' => 'matches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Match'), array('controller' => 'matches', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Matches'); ?></h3>
	<?php if (!empty($championship['Match'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Championship Id'); ?></th>
		<th><?php echo __('Home'); ?></th>
		<th><?php echo __('Visitor'); ?></th>
		<th><?php echo __('Type'); ?></th>
		<th><?php echo __('Place'); ?></th>
		<th><?php echo __('Start'); ?></th>
		<th><?php echo __('Ended'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($championship['Match'] as $match): ?>
		<tr>
			<td><?php echo $match['id']; ?></td>
			<td><?php echo $match['championship_id']; ?></td>
			<td><?php echo $match['home']; ?></td>
			<td><?php echo $match['visitor']; ?></td>
			<td><?php echo $match['type']; ?></td>
			<td><?php echo $match['place']; ?></td>
			<td><?php echo $match['start']; ?></td>
			<td><?php echo $match['ended']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'matches', 'action' => 'view', $match['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'matches', 'action' => 'edit', $match['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'matches', 'action' => 'delete', $match['id']), null, __('Are you sure you want to delete # %s?', $match['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Match'), array('controller' => 'matches', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
